Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix category filtering for "No category" #1181

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Fix category filtering for "No category" #1181

merged 1 commit into from
Feb 10, 2025

Conversation

rowo360
Copy link
Contributor

@rowo360 rowo360 commented Feb 9, 2025

This PR fixes one issue with the category filtering in a special use case (#1147)

If categories have been defined for all methods of a TestFixture and now "No category" is activated for category filtering, the TestFixture will still be displayed in the tree, but without any children. Here's a screenshot:

It's expected that in this case also the TestFixture is filtered out and thus not be displayed in the tree anymore.

@rowo360
Copy link
Contributor Author

rowo360 commented Feb 9, 2025

Luckily this use case doesn't break the category filtering implementation. It's just an exceptional case which were not considered so far. Also all existing filtering tests continue to run successfully with the required adaptation. However tests were added to cover this use case.

In general the category filtering should consider only test-case nodes, but not TestFixtures nodes. The test-case nodes already determines all categories from itself and from its TestFixture to decide if the category filter matches.
And for TestFixture node the general filtering rule is applied: it will be only visible, if any of his child nodes is visible.

@rowo360 rowo360 merged commit a86ec98 into main Feb 10, 2025
2 checks passed
@rowo360 rowo360 deleted the issue-1147-2 branch February 10, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant